package com.study.dao;

import java.util.List;

import org.apache.commons.dbutils.handlers.BeanListHandler;

import com.study.bean.HostBean;
import com.study.db.BasicDataOperation;
import com.study.tools.MyTools;

public class FindImgDao {
	 public List<HostBean> getImg(HostBean hostid){
		 String sql="select host_img,host_name from host where host_id=?";
		 List<HostBean>  list=MyTools.getInstance(BasicDataOperation.class).queryData(sql,
				 new BeanListHandler<>(HostBean.class),hostid.getHost_id());
		 return list;
	 }
}
